package com.parking.status.sync.repository;

import com.parking.status.sync.entity.ParkingLot;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created by Administrator on 2015/9/17.
 */
public interface ParkingLotRepository  extends JpaRepository<ParkingLot, Long> {

    @Query("select s from #{#entityName} s where s.status=0")
    List<ParkingLot> findStatusEqualZero();
}
